package com.basic.business.finance.domain;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import com.basic.common.core.domain.BaseEntity;
import com.basic.common.utils.uuid.ULID;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Getter
@Setter
@ExcelIgnoreUnannotated
public class TMoneySummary extends BaseEntity {

    private String id;

    /** 主表id*/
    private String mainId;

    /** 明细表id */
    private String detailsId;

    /** 规则表id */
    private String ruleId;

    /** 汇总金额 */
    private BigDecimal amount;

    public TMoneySummary(){
        this.id = ULID.getId();
    }

    @Override
    public String toString() {
        return "TMoneySummary{" +
                "id='" + id + '\'' +
                ", mainId='" + mainId + '\'' +
                ", detailsId='" + detailsId + '\'' +
                ", ruleId='" + ruleId + '\'' +
                ", amount=" + amount +
                '}';
    }
}
